package 建造者模式.建造者模式实现一.builder;

import 建造者模式.建造者模式实现一.product.Bike;

/**
 * @author wzx
 * @date 2024/8/28 16:30
 * @description: mobaike单车建造者
 */
public class MobikeBuilder extends Builder{
    @Override
    public void buildFrame() {
        System.out.println("制作铝合金车架");
        mBike.setFrame("铝合金车架");
    }

    @Override
    public void buildSeat() {
        System.out.println("制作真皮车座");
        mBike.setSeat("真皮车座");
    }

    @Override
    public Bike createBike() {
        return mBike;
    }
}
